package com.sgb.goods.view.adapter;

import androidx.databinding.ViewDataBinding;

import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.goods.BR;
import com.sgb.goods.R;
import com.sgb.goods.entity.StorageManageEntity;
import com.sgb.goods.utils.base.adapter.BaseCommonAdapter;

/**
 * 描述：商品-仓储列表适配器
 *
 * @author qiangHeNoo
 * <p>
 * 时间：2021.11.27
 */
public class StorageManageAdapter extends BaseCommonAdapter<StorageManageEntity> {

    public StorageManageAdapter() {
        super(R.layout.goods_item_storage_manage, null, BR.viewModel);
    }

    @Override
    protected void convert(BaseViewHolder baseHolder, ViewDataBinding dataBinding, StorageManageEntity entity) {
        baseHolder.addOnClickListener(R.id.goods_tv_delete)
                .addOnClickListener(R.id.goods_tv_edit);
    }
}
